package org.qydjk.common.pojo.product;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 产品日志实体
 * Created by Edward_yang on 2017/12/21
 */
@Entity
@Table(name = "qy_product_log", catalog = "qydjk")

public class ProductLog implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private Integer userType;
	private String username;
	private Integer productId;
	private Integer type;
	private String typeName;
	private String des;
	private Date createTime;
	private Date updateTime;

	// Constructors

	/** default constructor */
	public ProductLog() {
	}

	/** full constructor */
	public ProductLog(Integer userId, Integer userType, String username, Integer productId, Integer type,
			String typeName, String des, Date createTime, Date updateTime) {
		this.userId = userId;
		this.userType = userType;
		this.username = username;
		this.productId = productId;
		this.type = type;
		this.typeName = typeName;
		this.des = des;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "id", unique = true, nullable = false)

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id")

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "user_type")

	public Integer getUserType() {
		return this.userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	@Column(name = "username", length = 50)

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "product_id")

	public Integer getProductId() {
		return this.productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	@Column(name = "type")

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "type_name", length = 200)

	public String getTypeName() {
		return this.typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	@Column(name = "des", length = 200)

	public String getDes() {
		return this.des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	@Column(name = "create_time", length = 19)

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_time", length = 19)

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}